package cn.achao.csr.api.model.entity;

import cn.achao.csr.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 创建用户拓展表
 * @TableName sys_user_expand
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="sys_user_expand")
public class SysUserExpand extends BaseEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id = super.getId();

    /**
     * 微信标识
     */
    private String wxId;

    /**
     * 微信获取的用户信息
     */
    private String wxUserInfo;

    /**
     * 支付宝标识
     */
    private String zfbId;

    /**
     * 支付宝获取的用户信息
     */
    private String zfbUserInfo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * INSERT INTO `csr`.`leaf_alloc` (`biz_tag`, `max_id`, `step`, `description`)
     * VALUES ('seq_sys_user_expand', 1, 100, 'seq_sys_user_expand主键');
     * @return
     */
    @Override
    public String sequenceCode() {
        return "seq_sys_user_expand";
    }

    public SysUserExpand(Boolean generateId) {
        super(generateId);
    }
}